package ihistoryApp.dal.controller;
import ihistoryApp.service.RedisService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RedisController {

    private final RedisService redisService;

    public RedisController(RedisService redisService) {
        this.redisService = redisService;
    }

    @GetMapping("/test-redis")
    public String testRedis() {
        redisService.testConnection();
        return "Check the console for the test output.";
    }
}
